﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Adm/Site.Master" AutoEventWireup="true"
    CodeBehind="Clientes.aspx.cs" Inherits="App.UI.Clientes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <span class="titulo">
        <%--Titulo da Página--%>
        <asp:Literal Text="Clientes" runat="server" />
        <%--Link para página de cadastro--%>
        <a href="CadastroClientes.aspx" class="m-btn mini right go-left"><i class="icon-plus">
        </i>Novo Cliente</a>
        <%--Home--%>
        <a href="Default.aspx" class="m-btn mini right go-left"><i class="icon-home"></i>Home</a>
    </span>
    <div class="clear">
    </div>
    <div class="grid">
        <%--Grid View--%>
        <asp:GridView ID="grdView" AllowPaging="True" CssClass="table table-striped table-bordered table-condensed"
            AutoGenerateColumns="False" EmptyDataText="Nenhum registro encontrado"  OnPageIndexChanging="grdView_PageIndexChanging"
            PageSize="15" runat="server">
            <Columns>
                <asp:BoundField DataField="Nome" ItemStyle-CssClass="usuarios" HeaderText="Nome" />
              
                <asp:BoundField DataField="Email" ItemStyle-CssClass="usuarios" DataFormatString="&lt;a href=&quot;mailto:{0}&quot;&gt;{0}&lt;/a&gt;"
                    HeaderText="Email" HtmlEncode="False" />
                <asp:TemplateField HeaderText="Ações">
                    <ItemTemplate>
                        <asp:LinkButton ID="Editar" CssClass="btn-grid" ToolTip="Editar" CommandArgument='<%# Eval("Pessoa_ID") %>'
                            OnCommand="btnEditar_Command" runat="server">
                            <asp:Image  AlternateText="Editar" ToolTip="Editar" ImageUrl="/App_Themes/Site/Imagens/edit.png"
                                runat="server" />
                        </asp:LinkButton>
                        <asp:LinkButton ID="Deletar" CssClass="btn-grid" ToolTip="Deletar" CommandArgument='<%# Eval("Pessoa_ID") %>'
                            OnCommand="btnDeletar_Command" runat="server">
                        <asp:image imageurl="/App_Themes/Site/Imagens/delete.png" AlternateText="Deletar"
                            ToolTip="Deletar" runat="server" />
                        </asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
